package OpenId

import (
	"OnlineRetailers/controllers/admin/session"
	"fmt"
)

func CheckOpenId(openId string) (err error) {

	exi, err := session.ExistSession(openId)
	if err != nil {
		return
	}
	if !exi {
		err = fmt.Errorf("未登录")
	}
	return
}
